package com.note.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.note.domain.Content;
import com.note.mapper.ContentMapper;
import com.note.service.ContentService;
import org.apache.ibatis.annotations.Select;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Xiongx
 * @version 1.0
 * @date 2021/6/6 1:17
 * @since JDK 1.8
 */
@Service
public class ContentServiceImpl extends ServiceImpl<ContentMapper, Content> implements ContentService {


    @Override
    public Content getContentByNid(Integer nid) {
        return super.getBaseMapper().selectContentOne(nid);
    }
}
